<p>
    <fieldset style="border: 1px solid; padding: 15px; margin: 0 10px 0 10px">
        <legend><?php echo elgg_echo('Catégories de publication');?></legend>
        
        <label for="params[treecategories]"><?php echo elgg_echo('Catégories');?></label><br/>
        <div class="example"><?php echo elgg_echo('Entrez ici les catégories désirées sous forme de tableau JSON, exemple: 
        <br /><i>{"categories" :{
          "main": [
            {"value": "Etudes",
             "class": "etudiant",
              "sub": [
                {"value": "Cursus"},
                {"value": "Sports/santé/culture"},
                {"value": "Associations"}
              ]
            },
            {"value": "Enseignement",
             "class": "enseignant",
              "sub": [
                {"value": "Cours"},
                {"value": "Réflexions"},
                {"value": "Information"}
              ]
            },
            {"value": "Recherche",
             "class": "chercheur",
              "sub": [
                {"value": "Publications"},
                {"value": "Evènements"},
                {"value": "Récits de chercheurs"}
              ]
            },
            {"value": "Administration",
             "class": "service",
              "sub": [
                {"value": "Partage d\'expérience"},
                {"value": "Outils"},
                {"value": "Projets"}
              ]
            }
          ]
         }}</i>');?></div>
        <textarea name="params[treecategories]" cols="60" rows="6"><?php echo $vars['entity']->treecategories;?></textarea><br/>
        
    </fieldset>
</p>